/**
*  Module
*
* Description
*/
var app = angular.module('webapp');

app.service('PayRollService', ['$http','$q',PayRollService]);

function PayRollService($http , $q){
	return {
		getLevel2Menu:function(data){
			return handleRequest('GET','/getLevel2Menu',data,$http,$q);
		},
		getPower:function(data){
			return handleRequest('GET','/getPower',data,$http,$q);
		},
		getPayrollAll:function(data){
			return handleRequest('GET','/getPayrollAll',data,$http,$q);
		},
		addPayroll:function(data){
			return handleRequest('POST','/addPayroll',data,$http,$q);
		},
		uploadPayroll:function(data){
			return handleRequest('POST','/uploadPayroll',data,$http,$q);
		},
		removePayroll:function(data){
			return handleRequest('POST','/removePayroll',data,$http,$q);
		}
	};
}